<template>
    <div>
        <div v-if="kk==1">
            <GoodList></GoodList>
        </div>
        <div v-if="kk==2">
            222222222222222
        </div>
    </div>
</template>

<script>
    import Msg from './msg.js'
    import GoodList from './goodsList.vue'
    export default {
        data(){
            return {
                kk: 0
            }
        },
        mounted(){
            var _this = this;
            Msg.$on('val',function(m){
                _this.kk = m;
            })
        },
        components:{
            GoodList
        }
    }
</script>

<style scoped>

</style>
